# Maintainer: Jordan Christiansen <xordspar0@gmail.com>
# Contributor: Paul Bredbury <brebs@sent.com>
pkgname=quakespasm
pkgver=0.94.3
pkgrel=0
pkgdesc="Quake 1 engine"
url="http://quakespasm.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="mesa-dev sdl2-dev libmad-dev libvorbis-dev"
source="https://sourceforge.net/projects/quakespasm/files/Source/quakespasm-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/Quake"
options="!check" # No test suite

build() {
	make DO_USERDIRS=1 USE_SDL2=1
}

package() {
	install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
	install -Dm 644 "$pkgname.pak" "$pkgdir/usr/share/games/quake/$pkgname.pak"
}

sha512sums="
ab592c1941e96dcf02308e3deb0ddf3aadbfa05f404042710b03ab9910b26b14f6ae63ae8e3fc49d5efe9b35286ce548644e1efa1f9a081fff66fa13328ed313  quakespasm-0.94.3.tar.gz
"
